package com.yuandian.management.enums;
/**
 * 应用标识枚举
 * @author User
 *
 */
public enum AppIdEnum {
	/**
	 * 应用系统标识，业务综合监控平台的标识BIMP
	 */
	AppIdEnumBIMP("0","BIMP");
	
	private String code;
	private String message;
	
	private AppIdEnum(String code, String message){
		this.code=code;
		this.message=message;
	}

	public static String getAppIdEnumValue(String key){
		if(AppIdEnumBIMP.getCode().equals(key.trim())){
			return AppIdEnumBIMP.getMessage();
		}
		throw new IllegalArgumentException("Invalid enum Code: " + key);
	}
	
	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
	
	@Override
	public String toString(){
		return this.code+"_"+this.message;
	}
}
